package com.woniuxy.mapper;

import com.woniuxy.entity.PointLike;
import com.woniuxy.entity.PointLikeExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface PointLikeMapper {
    long countByExample(PointLikeExample example);

    @Select("select count(1) from point_like where communicate_id = #{id}")
    long selectCountByDetailId(Integer id);

    @Select("select user_id userId,username from point_like where communicate_id = #{id}")
    List<Map<String,Object>> selectPointLikeByDetailId(Integer id);

    int deleteByExample(PointLikeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(PointLike record);

    int insertSelective(PointLike record);

    List<PointLike> selectByExample(PointLikeExample example);

    PointLike selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") PointLike record, @Param("example") PointLikeExample example);

    int updateByExample(@Param("record") PointLike record, @Param("example") PointLikeExample example);

    int updateByPrimaryKeySelective(PointLike record);

    int updateByPrimaryKey(PointLike record);
}